package com.k2data.app.k2bq.esafenet;

import com.k2data.app.k2bq.esafenet.common.DatabaseEnum;
import com.k2data.app.k2bq.esafenet.utils.DatabaseUtils;

import java.sql.ResultSet;
import java.sql.SQLException;

public class test {
    public static void main(String[] args) {
        try {
            DatabaseUtils databaseUtils = new DatabaseUtils(DatabaseEnum.SQL_SERVER);
            ResultSet resultSet = databaseUtils.doQuery("select count(*) count from FileAudit201808");
            while (resultSet.next()) {
                System.out.println(resultSet.getInt("count"));
            }
            databaseUtils.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}